package com.fengwk.resource.dao;

import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fengwk.resource.face.entity.ResFile;
import com.fengwk.support.pndao.DaoGen;

@DaoGen(sqlCols = ResFile.class)
public interface ResFileDao {
   
    int insert(ResFile tResFile);
    
    int updateForServerIdInFileIds(@Param("serverId") Long serverId, @Param("fileIds") Collection<Long> fileIds);
    
    ResFile findByFileId(@Param("fileId") Long fileId);
    
    ResFile findLatestByMd5(@Param("md5") String md5);
    
    List<ResFile> queryInFileIds(@Param("fileIds") Collection<Long> fileIds);
    
}